package com.label.grade.controller;/**
 * @author zhf
 * @date 2023/7/7 16:06
 * @version 1.0
 */

import com.label.Config.Logger.LogAnnotation;
import com.label.grade.service.ExtracurricularSumCalcService;
import com.label.grade.service.impl.UndergraGradeServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author zhf
 * 项目：student
 * 描述：e
 * @date 2023/7/7 16:06
 **/
@RestController
@RequestMapping("/zhf")
public class TestContrller {

    @Autowired
    UndergraGradeServiceImpl undergraGradeDoService;

    @Resource
    ExtracurricularSumCalcService extracurricularSumCalcService;
    @GetMapping("/hello")
    @LogAnnotation(module = "测试模块" , operator = "二课数据插入")
    public String hello(){
//        System.out.println(undergraGradeDoService.caculateGradeSummary("185520"));
        undergraGradeDoService.caculateGpaAndCredit();
//        extracurricularSumCalcService.setExtracurricularSum();
        return "hellozzhhhhfff";
    }




}
